<?php
include_once( '../api/session.php' );

require_once( '../api/Client.class.php' );

include_once( '../library/config.php' );
include_once( APPLICATION.'User.class.php' );
include_once( APPLICATION.'Payment.class.php' );
include_once( APPLICATION.'Paymentrequest.class.php' );

$pname = 'JaPagoJo';

include_once( 'templates/header.tmp.php' );
if( isset( $_GET['step'] ) )
  include_once( 'templates/pay_noclient2.tmp.php' );
else {
	$payment = new Payment( $_GET['idp'] );
	$prequest = Paymentrequest::findByEmailAndIdPayment( $_GET['email'], $_GET['idp'] );
  include_once( 'templates/pay_noclient.tmp.php' );
}
include_once( 'templates/footer.tmp.php' );

?>